nautil
Class DateUtility

public class DateUtility

Title: Notarization Authority Utilities

Description:

Copyright: Copyright (c) 2003

Company: UCSC

Version:
1.0
Author:
H.E.M.H.B. Ekanayake
Method Detail

getDate

public String getDate()
Returns:
current date, as a string

getDate

public String getDate(Date d)
Parameters:
d - Date object
Returns:
date from Date object, as a string

getDate

public String getDate(long UTC)
Parameters:
UTC - long integer format
Returns:
date from UTC, as a string

getDate

public String getDate(int year,
                      int month,
                      int date)
Parameters:
year -
month -
date -
Returns:
date from year/month/date, as a string

getTime

public String getTime()
Returns:
current time, as a string

getTime

public String getTime(Date d)
Parameters:
d - Date object
Returns:
time from date object, as a string

getTime

public String getTime(long UTC)
Parameters:
UTC - long integer format
Returns:
time from UTC, as a string

getUTC

public long getUTC()
Returns:
current datetime in UTC long integer format

getYEAR

public int getYEAR()
Returns:
current year

getYEAR

public int getYEAR(Date date)
Parameters:
date - Date object
Returns:
year from Date object

getDAY_OF_MONTH

public int getDAY_OF_MONTH()
Returns:
current day

getDAY_OF_MONTH

public int getDAY_OF_MONTH(Date date)
Parameters:
date - Date object
Returns:
day from Date object

getMONTH

public int getMONTH()
Returns:
current month

getMONTH

public int getMONTH(Date date)
Parameters:
date - Date object
Returns:
month from Date object

getHOUR_OF_DAY

public int getHOUR_OF_DAY()
Returns:
now hour

getMINUTE

public int getMINUTE()
Returns:
now minute

getSECOND

public int getSECOND()
Returns:
now second